package base;

/**
 * @author : zGame
 * @version V1.0
 * @Project: rokectmqprac
 * @Package PACKAGE_NAME
 * @Description: TODO
 * @date Date : 2022年01月11日 11:05
 */
public abstract class MQBase {
    
    private String underLine = "_";
    
    protected String getTopic(int serverId) {
        return getGroup() + underLine + serverId + underLine + getTopicModule().getModuleName();
        
    }
    
    protected String getGroup() {
        return "gameServer";
    }
    
    protected int getCurrentServerId() {
        return 1;
    }
    
    public abstract void propertySet();
    public abstract TopicModule getTopicModule();
}
